const { createWindow } = require("./utils/createWindow");
const { app, BrowserWindow } = require("electron");

app.on("ready", (e) => {
  createWindow();
  app.on("activate", () => {
    BrowserWindow.getAllWindows().length === 0 && createWindow();
  });
});

app.on("window-all-closed", () => {
  process.platform !== "darwin" && app.quit();
});
